<template>
	<view>
		<u-tabbar
			:value="value1"
			:fixed="true"
			:zIndex = '2'
			:placeholder="false"
			:safeAreaInsetBottom="true"
		>
			<u-tabbar-item text="首页" icon="home" @click="click1('/pages/index/index')" ></u-tabbar-item>
			<u-tabbar-item text="学习" icon="photo" @click="click1('/pages/study/study')" ></u-tabbar-item>
			<u-tabbar-item text="刷题" icon="play-right" @click="click1('/pages/study/Brushquestions/brushquestions')" ></u-tabbar-item>
			<u-tabbar-item text="我的" icon="account" @click="click1('/pages/mine/yzpersonal')" ></u-tabbar-item>
		</u-tabbar>
		
	</view>
</template>

<script>
	export default {
		name:"appbottom",
		props:{
			value1:{
				type:Number,
				default:0
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			click1(url) {
				console.log("点了")
				uni.redirectTo({
					url:url
				})
			}
		}
	}
</script>

<style>

</style>
